<style type="text/css">

#notka
{
	border:#39F;
	border-style:solid;
	border-width:thin;
	padding: 5px 10px 5px 10px; 
}

#notka b
{
	font-size:24px;	
}

</style>

    <?php
		$conection = mysql_connect($mysql_host,$mysql_user,$mysql_password);
		mysql_set_charset('utf8',$conection);
		@mysql_select_db($mysql_database) or die("Nie udało się wybrać bazy danych");
		$query = "SELECT * FROM NEWS ORDER BY `DATE` DESC";
		$result = mysql_query($query);
		$ilosc = mysql_num_rows($result);
		while($row = mysql_fetch_assoc($result)){
			
			$date = date_create($row['DATE']);
			echo "<div id=\"notka\" >";
			echo "<a href=\"/?content=news&id=".$row['ID']."\"><b>".$row['TITLE']."</b></a><br/>";
			echo  date_format($date,'Y-m-d')."<br/>";
			echo $row['TEXT']."<br/>";
			echo "Ilość Komentarzy(".$row['ILOSC_KOM'].")<br/>";
			echo "</div><br/>";
		}
		mysql_close();
	?>
